﻿using System.ComponentModel.DataAnnotations;

namespace CommonManagement
{
    /// <summary>
    /// 注册数据传输对象
    /// </summary>
    public class RegisterDto
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Password { get; set; }

        [Display(Name = "头像")]
        public string Avatar { get; set; }

        [Display(Name = "昵称")]
        public string NickName { get; set; }

        [Display(Name = "性别")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Sex { get; set; }

        [Display(Name = "电话号码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Phonenumber { get; set; }

        [Display(Name = "电子邮箱")]
        public string Email { get; set; }

        [Display(Name = "身份证号")]
        public string IdCard { get; set; }
    }
}